package array.d2;

public class Array2DimensionMain {
	
	public static void main(String[] args) {
		
		int[][] src = new int[][]{{100, 200, 300},
				{400, 500, 600}};
		int[][] tar = {{701, 702, 703},
				{704, 705, 706}};
		
		// src 정보출력
		System.out.print("src.length: " + src.length + "\t");
		System.out.print("src[0].length: " + src[0].length + "\t");
		System.out.println("src[1].length: " + src[1].length);
		
		// tar 정보출력
		System.out.print("tar.length: " + tar.length + "\t");
		System.out.print("tar[0].length: " + tar[0].length + "\t");
		System.out.println("tar[1].length: " + tar[1].length);
		
		// 2차원 배열 src 출력
		for (int i = 0; i < src.length; i++) {
			for (int j = 0; j < src[i].length; j++) {
				System.out.println("src[" + i + "][" + j +
						"]: " + src[i][j]);
			}
		}
		
		// 2차원 배열 tar 출력
		for (int i = 0; i < tar.length; i++) {
			for (int j = 0; j < tar[i].length; j++) {
				System.out.println("tar[" + i + "][" + j +
						"]: " + tar[i][j]);
			}
		}
	}
	
}





















